home *** CD-ROM | disk | FTP | other *** search
-
- to compile programs in the above-indicated sub- directories/trees,
- one must load libglut. inst-able images of GLUT v3.1 are located at
- toolbox/src/exampleCode/opengl/GLUT/inst/
-
- -------------------------------------
-
- ~opengl2/examples/texture README
-
- Copyright 1993, 1996, Silicon Graphics, Inc.
- Technical Education Development
- All Rights Reserved.
-
- A collection of programs demonstrating basic texture
- mapping using OpenGL.
-
-
- texture.c
- Reads in a texture from a .rgb file, sets up the texture and the
- texture environment, then applies the texture to a rectangular
- polygon using explicit texture coordinates.
-
- Escape key - exits the program
-
-
- mipmap.c
- Reads in a texture from a .rgb file, uses the opengl utility
- library routine gluBulid2dMipmaps() to scale and load mipmaps
- for a single texture image, then applies the texture to a
- rectangular polygon using explicit texture coordinates.
-
- <a> key - pause/restart movement
- <m> key - cycle minification filter
- <M> key - cycle Magnification filter
- <R> key - reset image to starting position
- Escape Key - exit program
-
-
- wrap.c
- This program reads in a single image from a .rgb file, and
- creates and load mipmaps of the image into texture memory. It
- sets the texture up to clamp in the s dimension and repeat in
- the t dimension, and then applies the texture to a rectangular
- polygon using explicit texture coordinates outside the range
- [0,1].
-
- <a> key - pause/restart movement
- Escape Key - exit program
-
-
- borders.c: demonstrates how texture borders are used when textures wrap.
-
- It specifies a border color of red which is averaged with the
- texture edge when the texture is clamped, and the filtering
- is not GL_NEAREST.
-
- <a> key - toggle animation on/off
- Escape Key - exit program
-
-
- texenv.c
- This program demonstrates the texture environment modes.
- It reads in a texture from a .rgb(a) file, and
- applies it as a texture to a rectangular polygon using explicit
- texture coordinates.
-
- The enironment modes can be changed interactively.
-
- <c> Key - toggle polygon color between white/red
- <e> key - cycle through environment modes
- Escape key - exit the program
-
-
- swim.c
- This program demonstrates how the alpha values in a texture
- can be combined with the texture environment to make textures
- with tranparent areas.
-
- alphaFunc and blending are used to make the parts of the
- rectangle outside the fish image transparent wherever the
- fish.rgba file has low alpha values.
-
- <a> Key - toggle alpha test on/off
- <b> Key - toggle blending on/off
- <e> Key - cycle through texture environment modes
- <s> Key - toggle swimming on/off
- Escape key - exit the program
-
-
-